#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
    int k = 0;
    scanf("%d", &k);

    int n = 1;
    double s = 0;
    while (s < k)
    {
        s += (1.0 / (n++));
    }
    if (k == 1)
        printf("2");
    else
        printf("%d", n - 1);
    return 0;
}